How to work with Encryption and decryption methods